//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.google.android.gms.ads.formats;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.RemoteException;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;

public abstract class NativeAdView extends FrameLayout {
    private final FrameLayout zzrY;

    public NativeAdView(Context var1) {
        super(var1);
        this.zzrY = this.zzd(var1);
    }

    public NativeAdView(Context var1, AttributeSet var2) {
        super(var1, var2);
        this.zzrY = this.zzd(var1);
    }

    public NativeAdView(Context var1, AttributeSet var2, int var3) {
        super(var1, var2, var3);
        this.zzrY = this.zzd(var1);
    }

    @TargetApi(21)
    public NativeAdView(Context var1, AttributeSet var2, int var3, int var4) {
        super(var1, var2, var3, var4);
        this.zzrY = this.zzd(var1);
    }

    private FrameLayout zzd(Context var1) {
        FrameLayout var2 = this.zze(var1);
        var2.setLayoutParams(new LayoutParams(-1, -1));
        this.addView(var2);
        return var2;
    }

    FrameLayout zze(Context var1) {
        return new FrameLayout(var1);
    }


    public void addView(View var1, int var2, android.view.ViewGroup.LayoutParams var3) {
        super.addView(var1, var2, var3);
        super.bringChildToFront(this.zzrY);
    }

    public void removeView(View var1) {
        if (this.zzrY != var1) {
            super.removeView(var1);
        }
    }

    public void removeAllViews() {
        super.removeAllViews();
        super.addView(this.zzrY);
    }

    public void bringChildToFront(View var1) {
        super.bringChildToFront(var1);
        if (this.zzrY != var1) {
            super.bringChildToFront(this.zzrY);
        }

    }
}
